//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopUserBank, MinishopUserBankResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopUserBankList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopUserBankResponse>(`/uctoo/minishop_user_bank/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopUserBank = async (id: string) => {
  return requestClient.get<MinishopUserBank>(`/uctoo/minishop_user_bank/${id}`);
};

export const adductooMinishopUserBank = async (data: Partial<MinishopUserBank>) => {
  return requestClient.post<MinishopUserBank>('/uctoo/minishop_user_bank/add', data);
};

export const edituctooMinishopUserBank = async (data: Partial<MinishopUserBank>) => {
  return requestClient.post<MinishopUserBank>('/uctoo/minishop_user_bank/edit', data);
};

export const deleteuctooMinishopUserBank = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_user_bank/del', { id });
};
